

	<div class="section-title"><?php echo $this->document->text['text_import']?></div>
    
    <div class="section-content">
            <div class="sitemap treeindex">
                <table class="data-table" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr class="tr-head">
                        
                        <th width="15%">Create by</th>
                        <th width="30%"><?php echo $this->document->text['text_supplier']?></th>
                        <th width="15%"><?php echo $this->document->text['text_date']?></th>
                        <th width="15%">Subtotal</th>
                    </tr>
        
        
        <?php
        	$sum = 0;
            foreach($orders as $order)
            {
        ?>
                    <tr>
                        
                        <td><?php echo $order['order']['createby']?></td>
                        <td><?php echo str_replace("<br />","",html_entity_decode($order['order']['supplier']))?></td>
                        <td><?php echo $this->date->formatMySQLDate($order['order']['orderdate'])?></td>
                        <td align="right"><?php echo $this->string->numberFormate($order['sum'])?></td>
                    </tr>
        <?php
        		$sum += $order['sum'];
            }
        ?>                                  
                </tbody>
                <tfoot>
                	<tr>
                    	<td></td>
                        <td></td>
                        <td><strong>Total</strong></td>
                        <td align="right"><strong id="importtotal"><?php echo $this->string->numberFormate($this->string->numberParse($sum))?></strong></td>
                    </tr>
                </tfoot>
                </table>
            </div>
    </div>
    
